package oop第二章作业;

public class Four {
    public void  four( int number1,int number2){
        System.out.println(number1+number2);
    }

    public void  four( int number1,int number2,int number3){
        System.out.println(number1+number2+number3);
    }
    public void  four( float number1 ,float number2){
        System.out.println(number1+number2);
    }

    public void  four( float number1 ,float number2,float nubmer3){
        System.out.println(number1+number2);
    }
    public void  four( String str1 , String  str2){
        System.out.println(str1+str2);
    }

    public static void main(String[] args) {
         Four number=new Four();
         number.four(12,12);

         number.four("梦想","暴富");
         number.four(12.0F,12.0F);
         number.four(12,12,12);
         number.four(12.0F,12.0F,12.0F);
    }
}
